public class Test2 {
    public static void main(String[] args) {
        int[] arr = {11,332,44,5,555,6666};
        int start = 0;
        int end = arr.length - 1;
       // for (int start = 0,end = arr.length-1;
        for(;start < end; start++,end--) {
        int temp = arr[start];
        arr[start] = arr[end];
        arr[end] = temp;
        }
        for (int i = 0; i < arr.length; i++) {
            System.out.println(arr[i]);
        }
    }
}
